<?php
/*
CheckUser('username');
function CheckUser($uname) { 
if( $_REQUEST[$uname] == 'php' ){
exit("false");
}
else{
exit("true");
  }
}  */
?>

<?php

   include "../mysql/mysql.php";
    $aa = new mysql;
    $aa->link("");
    include "../myfunction.php";
    $bb= new myfunction;

     $username= $_POST['username'];

      var_dump($username);
    CheckUser($username);

function CheckUser($username) { 

    $bb= new myfunction;
         
		 var_dump($username);

       
		
		$res= $bb->finduser($username);
		var_dump($res);
		if( @$res['user_name'] == $username ){
            exit("false");
          }
          else{
          exit("true");
		  }
 
}
		
?>

